#pragma warning(disable:4996)
#include<stdio.h>
#include<string.h>
//利用字符串操作函数实现字符串的左旋
void Left_Rotate(char arr[], char mid[],int count)
{
	strcpy(mid, arr + count);
	strncat(mid, arr, count);
	strcpy(arr, mid);
	return;
}
int main()
{
	int times;
	char mid[100] = { 0 };
	char arr[] = "ABCDE";
	printf("请输入左旋字符数>");
	scanf("%d", &times);
	int count = times % strlen(arr);//连接处
	Left_Rotate(arr,mid,count);
	printf("%s\n", arr);
	return 0;
}